<template>
    <div id="app">
        <router-view />
    </div>
</template>
<script>
export default {
    created(){
        this.getUserInfo();
    },
    methods: {
        /**
         * @description 获取用户信息
         */
        getUserInfo () {
            this.$post('/stuhire/UserCenter/getUserInfo',{},resp => {
                if(resp.code == 1) {
                    // console.log('getUserINfo', resp);
                    this.userInfo = {
                        ...resp.data
                    };
                    this.$store.commit('userInfo/SET_USER_INFO', resp.data);
                }
            });
        },
    }
};
</script>

<style lang="less"></style>
